package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingRecordPosition;
import com.api.shopapi.mapper.NursingRecordPositionMapper;
import com.api.shopapi.service.NursingRecordPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingRecordPositionServiceImplOne")
public class NursingRecordPositionServiceImplOne implements NursingRecordPositionService {

    @Autowired
    private NursingRecordPositionMapper nursingRecordPositionMapper;

    @Override
    public
    int insert(NursingRecordPosition nursingRecordPosition){
        return nursingRecordPositionMapper.insert(nursingRecordPosition);
    }

    @Override
    public
    int delete(String nursingRecordPositionCode){
        return nursingRecordPositionMapper.delete(nursingRecordPositionCode);
    }

    @Override
    public
    int update(NursingRecordPosition nursingRecordPosition){
        return nursingRecordPositionMapper.update(nursingRecordPosition);
    }

    @Override
    public
    NursingRecordPosition getByNursingRecordPositionCode(String nursingRecordPositionCode){
        return nursingRecordPositionMapper.getByNursingRecordPositionCode(nursingRecordPositionCode);
    }

    @Override
    public
    List<NursingRecordPosition> listByNursingRecordCode(String nursingRecordCode){
        return nursingRecordPositionMapper.listByNursingRecordCode(nursingRecordCode);
    }

    @Override
    public
    List<NursingRecordPosition> listNotAddLack(){
        return nursingRecordPositionMapper.listNotAddLack();
    }

    @Override
    public
    List<NursingRecordPosition> listOvertime(){
        return nursingRecordPositionMapper.listOvertime();
    }


}
